<?php 
if (!isset($isPodcast)) $isPodcast = in_category(30);
?>
<div class="post <?php if ($isPodcast):?>podcast<?php endif;?>">
<h1><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h1>

<?php if ('open' == $post->comment_status) : ?><a href="<?php comments_link() ?>" class="num-comments"><?php comments_number('No Comments', '1 Comment', '% Comments', '', ''); ?></a><?php endif; ?>

<?php if (!is_page()):?><div class="date"><span class="day"><?php the_time('d'); ?></span> <span class="mon"><?php the_time('M') ?></span></div><?php endif;?>

<div class="contents"><?php the_content('Read more &raquo;'); ?></div>

<?php if ($isPodcast) include('podcast-controls.php');?>

<?php if (!is_page()):?>
<div class="meta">
Posted on <?php the_time('l, M jS Y') ?> at <?php the_time() ?> <br />

<?php /* TODO: Add tags */ ?>

<div class="links">
    <?php if ('open' == $post->comment_status):?>
    	<a href="<?php comments_link() ?>" class="comments"><?php comments_number('No Comments', '1 Comment', '% Comments', '', 'Comments off'); ?></a>
    <?php else:?>
    	Comments off
	<?php endif ?>
    <a href="<?php the_permalink() ?>" class="permalink" title="Permanent link to this post">Permalink</a>
    <?php if ('open' == $post->ping_status): ?>
    <a href="<?php trackback_url(display); ?>" class="trackback" title="Trackback URL">Leave a trackback</a> 
    <?php endif;?>
    <a href="feed/" class="comments-rss" title="RSS feed for comments">Comments RSS</a>
</div>

</div> <!-- /meta -->
<?php endif; /* !is_page() */ ?>




</div> <!-- /post -->
<?php
return;
global $the_content;

?>
<div class="tt-entry <?if ($isPodcastPage):?>podcast<?endif;?>">


<?if ($isPodcastPage):?>
<?include('podcast-controls.php');?>
<?endif;?>

<?if ($isPodcastPage):?>
<div id="tt-podcast-more" style="">
<strong>Previously:</strong> <?php previous_post_link('%link', '%title', true); ?><br /><br />
<strong>Want more?</strong> Download FREE full length MP3s. <a href="/category/music-podcast/">Discover more music &gt;</a><br />
<strong>Get it delivered to your iPod:</strong> <a href="http://feeds.feedburner.com/TanTanMusic" class="feed" title="Free full-length MP3 tracks delivered to your iPod">Subscribe to the TanTan Music Podcast</a>
</div>
<?php else:?>
    <?php include('post-enclosures.php'); ?>
<?endif;?>

</div>

    <?php if ('open' == $post->comment_status):?>
<div class="tt-meta"><div class="links">
    <a href="<?php comments_link() ?>" class="comments"><?php comments_number('No Comments', '1 Comment', '% Comments', '', 'Comments off'); ?></a>
    <a href="<?php the_permalink() ?>" class="permalink" title="Permanent link to this post">Permalink</a>
    <?php if ('open' == $post->ping_status): ?>
    <a href="<?php trackback_url(display); ?>" class="trackback" title="Trackback URL">Leave a trackback</a> 
    <?php endif;?>
    <a href="feed/" class="comments-rss" title="RSS feed for comments">Comments RSS</a>
</div></div>
    <?php endif ?>


</div>